<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<title>动态定时任务管理</title>
</head>

<body>
	<h1>动态定时任务管理</h1>
	<form method="post" action="/add-task">
		<div>
			<label for="cronExpression">定时名称：</label>
			<input type="text" name="taskName" value="ynshun-task-1s">
		</div>
		<div>
			<label for="cronExpression">定时表达式：</label>
			<input type="text" name="expression" value="0/1 * * * * ?">
		</div>
		<button type="submit">添加任务</button>
	</form>
	
	
	<div style="padding-top: 100px;">
		<ul>
			<li th:each="item : ${tasks}">[[${ item }]]<a th:href="${ '/cancel/' + item }">取消</a></li>
		</ul>
	</div>
</body>

</html>